<?php

$sys_config =  include DATA_PATH. 'sys.config.php';
if ($sys_config['SUB_DOMAIN'] == '1') {
    $sys_config['SUB_DOMAIN'] = TRUE;
} else {
    $sys_config['SUB_DOMAIN'] = FALSE;
}

if (!empty($_GET['l']) && $_GET['l'] != $sys_config['DEFAULT_LANG']) {
    $default_theme = $sys_config['DEFAULT_M_THEME'] . '_' . $_GET['l'];
} else {
    $default_theme = $sys_config['DEFAULT_M_THEME'];
}

$config	= array(
    'DEFAULT_THEME'   => $default_theme,
    'DEFAULT_LANG'      => 'zh-cn',
    'TMPL_CACHE_ON'   => false,
    'TMPL_CACHE_TIME' => -1,


    /* 模板相关配置 */
    'TMPL_PARSE_STRING'   => array(
        '__STATIC__' => __ROOT__ . '/Public/static',
        '__IMG__'    => __ROOT__ . '/Themes/Wap/'.$default_theme.'/Public/images',
        '__JS__'     => __ROOT__ . '/Themes/Wap/'.$default_theme.'/Public/js',
        '__CSS__'    => __ROOT__ . '/Themes/Wap/'.$default_theme.'/Public/css',
    ),

    // 是否开启子域名部署
    'APP_SUB_DOMAIN_DEPLOY' => $sys_config['SUB_DOMAIN'],

);
return $config;
?>
